<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:88:"C:\myphp_www\PHPTutorial\WWW\OneBase\public/../app/admin\view\student\student_dutie.html";i:1537150084;}*/ ?>
<div class="box">
  <div class="box-header">
    
    <ob_link><a class="btn" href="<?php echo url('studentAdd'); ?>"><i class="fa fa-plus"></i> 新 增</a></ob_link>
    
  </div>
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>姓名</th>
          <th>性别</th>
          <th>班级</th>
          <th>申请职务</th>
          <th>简述</th>
          <th>创建时间</th>
          <th>状态</th>
          <th>操作</th>
      </tr>
      </thead>
      
      <?php if(!(empty($dutie) || (($dutie instanceof \think\Collection || $dutie instanceof \think\Paginator ) && $dutie->isEmpty()))): ?>
        <tbody>
            <?php if(is_array($dutie) || $dutie instanceof \think\Collection || $dutie instanceof \think\Paginator): $i = 0; $__LIST__ = $dutie;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <tr>
                  <td><?php echo $vo['name']; ?></td>
                  <td><?php echo $vo['sex']; ?></td>
                  <td><?php echo $vo['class']; ?></td>
                  <td><?php echo $vo['duty']; ?></td>
                  <td><?php echo $vo['describe']; ?></td>
                  <td><?php echo $vo['create_time']; ?></td>
                  <td><?php echo $vo['status_text']; ?></td>
                  <td class="col-md-2 text-center">
                      <ob_link><a href="<?php echo url('studentEdit', array('id' => $vo['id'])); ?>" class="btn"><i class="fa fa-edit"></i> 编 辑</a></ob_link>
                      &nbsp;
                      <ob_link><a class="btn confirm ajax-get"  href="<?php echo url('studentDel', array('id' => $vo['id'])); ?>"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
                  </td>
                </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
        <?php else: ?>
        <tbody><tr class="odd"><td colspan="7" class="text-center" valign="top"><?php echo config('empty_list_describe'); ?></td></tr></tbody>
      <?php endif; ?>
    </table>
  </div>

  <div class="box-footer clearfix text-center">
      <?php echo $dutie->render(); ?>
  </div>

</div>